for i in `echo 10.165.118.24`
do
		mkdir -p /data/${i}_logs/
		/usr/bin/rsync -avSH rsync://$i/logs/ /data/${i}_logs/ --exclude='*.gz'  --exclude='*.log' 
done
 
for i in `echo 10.165.118.24`
do
		/usr/bin/rsync -avSH rsync://$i/logs/ /data/${i}_logs/ --exclude='*.gz'  --exclude='*.log'
done
cd /data
Hour=`date --date "1 hours ago" "+%Y-%m-%d-%H"`
Result=`l *10*/p0/activate.log*${Hour}* | wc -l`
checkCount=10
if [[ $(date "+%H") -gt 6 ]];then
   if [ $Result -lt $checkCount ]; then
        echo "zplay $Hour rsync log not enough $Result less than $checkCount" >> maillog.txt
        mail -s "zplay $Hour rsync log not enough $Result less than $checkCount" liuchen@zplay.cn < maillog.txt &
   fi
fi

/usr/local/zplay/statics/shell/main_ad_byhour.sh

curl "http://10.171.127.219/adcontrol/control/checkAdBudget"
/usr/local/zplay/statics/shell/main_ad_byday.sh